/**
 * Copyright (c) 2016-2100 yunclouds
 */
package com.yunqian.redot.repository;

import com.yunqian.redot.domain.Customers;
import com.yunqian.repository.BaseRepository;
import org.springframework.stereotype.Repository;

/**
 * 客户信息表
 *
 * @author zsy
 * 2018-09-29 15:54:28
 */
@Repository
public interface CustomersRepository extends BaseRepository<Customers, Long> {

    Customers findByName(String name);

    Customers findByPhone(String phone);

    Customers findByOpenId(String openId);

    /**
     * 根据手机号和openId查询用户信息
     * @param phone 手机号
     * @param openId
     * @return
     */
    Customers findByPhoneAndOpenId(String phone, String openId);
}
